import http from "@/utils/request";

// 获取交付基础数据
export const getBaseDeliver = (params: any) => {
  return http({
    url: "/building/dataScreen/getBaseDeliver",
    method: "post",
    data: params,
  });
};

// 获取交付折线图数据
export const getBaseDeliverLine = (params: any) => {
  return http({
    url: "/building/dataScreen/getBaseDeliverLine",
    method: "post",
    data: params,
  });
};

// 获取交付排名
export const selectDeliverRanking = (params: any) => {
  return http({
    url: "/building/developers/selectDeliverRanking",
    method: "get",
    params: params,
  });
};

// 获取借款基础数据
export const getBaseLend = (params: any) => {
  return http({
    url: "/building/dataScreen/getBaseLend",
    method: "post",
    data: params,
  });
};

// 获取借款则线图数据
export const getBaseLendLine = (params: any) => {
  return http({
    url: "/building/dataScreen/getBaseLendLine",
    method: "post",
    data: params,
  });
};

// 获取结款排名
export const getLendRank = (params: any) => {
  return http({
    url: "/building/dataScreen/getLendRank",
    method: "get",
    params: params,
  });
};

// 获取各地保交楼统计
export const getCitysBar = (params: any) => {
  return http({
    url: "/building/dataScreen/getCitysBar",
    method: "post",
    data: params,
  });
};

// 下拉框模糊查询
export const dropdown = (params: string) => {
  return http({
    url: "/building/dataScreen/dropdown?queryStr=" + params,
    method: "get",
  });
};

// 获取保交楼数据地图
export const getBaseMap = (params: any) => {
  return http({
    url: "/building/dataScreen/getBaseMap",
    method: "get",
  });
};

// 开发商看板

// 开发商列表
export const selectEnterpriseProjectList = (params: any) => {
  return http({
    url: "/building/developers/selectEnterpriseProjectList",
    method: "get",
    params: params,
  });
};

// 开发商/项目挪用预售资金排名
export const selectCapitalInfo = (params: any) => {
  return http({
    url: "/building/developers/selectCapitalInfo",
    method: "get",
    params: params,
  });
};

// 开发商/项目剩余货值排名
export const selectCurrencyInfo = (params: any) => {
  return http({
    url: "/building/developers/selectCurrencyInfo",
    method: "get",
    params: params,
  });
};

// 开发商所以质占比
export const selectPropertyProportion = (params: any) => {
  return http({
    url: "/building/developers/selectPropertyProportion",
    method: "get",
    params: params,
  });
};

//开发商详情
// 开发商详情 - 项目数量
export const selectEnterpriseInfoProjectInfo = (params: any) => {
  return http({
    url: "/building/developers/selectEnterpriseInfoProjectInfo",
    method: "get",
    params: params,
  });
};

// 开发商详情 - 项目剩余保交楼完成进度
export const selectProjectResidueSchedule = (params: any) => {
  return http({
    url: "/building/developers/selectProjectResidueSchedule",
    method: "get",
    params: params,
  });
};

// 开发商详情 - 项目审计情况统计
export const selectProjectAuditStatistics = (params: any) => {
  return http({
    url: "/building/developers/selectProjectAuditStatistics",
    method: "get",
    params: params,
  });
};

// 开发商详情 - 项目交付进度
export const selectProjectDeliverySchedule = (params: any) => {
  return http({
    url: "/building/developers/selectProjectDeliverySchedule",
    method: "get",
    params: params,
  });
};

// 开发商详情 - 借款还款金额
export const selectProjectMoneyTree = (params: any) => {
  return http({
    url: "/building/developers/selectProjectMoneyTree",
    method: "get",
    params: params,
  });
};

/*
项目看板及详情
*/
export const selectBelongDevelopers = (params: any) => {
  return http({
    url: "/building/projectBoard/selectBelongDevelopers",
    method: "get",
    params: params,
  });
};

//项目列表
export const selectProjectList = (params: any) => {
  return http({
    url: "/building/projectBoard/selectProjectList",
    method: "get",
    params: params,
  });
};

//查询项目详情统计信息
export const selectProjectInfoStatistics = (params: any) => {
  return http({
    url: "/building/projectBoard/selectProjectInfoStatistics",
    method: "get",
    params: params,
  });
};

//获取城市列表
export const selectPull = (params: any) => {
  return http({
    url: "/building/sysRegion/selectPull",
    method: "get",
    params: params,
  });
};
